event_poll.js ➔ constructor   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 6
rs 10
1
import VotingUrl from './voting_url'
2
3
class EventPoll {
4
  constructor (id, baseUrl, title, possibleDates) {
5
    this.id = id
6
    this.baseUrl = baseUrl
7
    this.title = title
8
    this.possibleDates = possibleDates
9
  }
10
11
  votingUrl () {
12
    return new VotingUrl(this.baseUrl, this)
13
  }
14
}
15
16
export default EventPoll
17